<#include "overall_header.html">

						<h1>${L("nav.acp/userview")} - ${se_page.user.name}</h1>
						<p>${se_page.user.email}</p>

						<table cellspacing="1">
							<caption>${L("user.account-basic-information")}</caption>
							<colgroup>
								<col width="130" class="col1"><col width="250" class="col2"><col width="130" class="col1"><col class="col2">
							</colgroup>
							<tbody>
								<tr>
									<td>${L("user.userid")}</td>
									<td>${se_page.user.id}</td>
									<td>${L("user.register-time")}</td>
									<td>${se_page.user.createTime?string("yyyy-MM-dd HH:mm")}</td>
								</tr>
								<tr>
									<td>${L("user.language")}</td>
									<td>${se_page.languages[se_page.user.language].localName}</td>
									<td>${L("user.timezone")}</td>
									<td>${L("global.timezone."+se_page.user.timezone?string("0.00"))}</td>
								</tr>
							</tbody>
						</table>

						<table cellspacing="1">
							<caption>${L("user.projects")}</caption>
							<colgroup>
								<col width="50%"><col width="50%">
							</colgroup>
							<tbody>
								<tr>
									<td>

										<#if se_page.user.projectUsers?? && se_page.user.projectUsers?size &gt; 0>
										<table cellspacing="1">
											<colgroup>
												<col width="130" class="col1"><col class="col2" width="130"><col class="col2">
											</colgroup>
											<tbody>
												<#list se_page.user.projectUsers as projectUser> 
												<tr>
													<td><a href="${sf_configs.root_path}/acp/projectview${sf_configs.extension}?id=${projectUser.projectId}">${projectUser.project.name}</a></td>
													<td>${L("project.role."+projectUser.role)}</td>
													<td style="width: 25%; text-align: center;">
														<a href="${sf_configs.root_path}/acp/projectmemberdelete${sf_configs.extension}?project_id=${projectUser.projectId}&user_id=${se_page.user.id}">${L("global.delete")}</a>
													</td>
												</tr>
												</#list>
											</tbody>
										</table>
										</#if>

									</td>
									<td>

										<form action="${se_page.add_project_action}" method="get">
										<table cellspacing="1">
											<colgroup>
												<col width="130" class="col1"><col class="col2">
											</colgroup>
											<tbody>
												<tr>
													<td>${L("project")}</td>
													<td><select id="project_id" name="project_id">${se_page.project_options}</select></td>
												</tr>
												<tr>
													<td>${L("project.role")}</td>
													<td><select id="role" name="role">${se_page.role_options}</select></td>
												</tr>
												<tr>
													<td></td>
													<td>
														<input type="hidden" name="user_id" value="${se_page.user.id}" />
														<input type="submit" value="${L("global.add")}" name="add" class="button1">
													</td>
												</tr>
											</tbody>
										</table>
										</form>

									</td>
								</tr>

							</tbody>
						</table>

						<div class="clearfix">&nbsp;</div>
						<caption><a href="${sf_configs.root_path}/acp/operationlog${sf_configs.extension}?obj_type=0&obj_id=${se_page.user.id}" title="${L("log.browse-all")}">${L("log.operationlogs")}</a></caption>
						<table cellspacing="1">
							<thead>
								<tr>
									<th width="150">${L("log.time")}</th>
									<th width="180">${L("log.action")}</th>
									<th>${L("log.parameters")}</th>
									<th width="120" style="text-align: center;">${L("log.user-name")}</th>
								</tr>
							</thead>
							<tbody>
								<#if se_page.user.operationLogs??><#list se_page.user.operationLogs as operationLog> 
								<tr class="row<#if (operationLog_index % 2) == 0>1<#else>2</#if>">
									<td>${operationLog.time?string('yyyy-MM-dd HH:mm:ss')}</td>
									<td><#if L("nav."+operationLog.action)??>${L("nav."+operationLog.action)}<#else>${operationLog.action}</#if></td>
									<td>
										<#if operationLog.parametersMap??><#list operationLog.parametersMap?keys as paramKey>${paramKey}<#if paramKey_has_next>, </#if></#list></#if>
									</td>
									<td><#if operationLog.user??>${operationLog.user.name}<#else>${operationLog.userId}</#if></td>
								</tr>
								</#list></#if> 
							</tbody>
						</table>

<#include "overall_footer.html">
